package com.whmskj.xjlhbc.domain;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;

@Data
@Schema(name = "故障维修更换配件", description = "故障维修更换配件")
@TableName(value = "replaceAccessories", autoResultMap = true)
public class ReplaceAccessories {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Schema(description = "更换配件名称")
    private String name;

    @Schema(description = "更换配件数量")
    private Integer number;

    @Schema(description = "备注")
    private String mark;

    @Schema(description = "维护记录id")
    @TableField(value = "maintenance_id")
    private Integer maintenanceId;

    @Schema(description = "维保=0,故障=1")
    private Integer type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date end;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
}
